From 2752e8f063f2a7f854ebf36bb0c8fea3e3653dc4 Mon Sep 17 00:00:00 2001 From: Steven Smith Date: Wed, 25 Apr 2007 12:04:55 +0100 Subject: [PATCH] hvm save/restore: Use a GUEST_HANDLE_64 rather than an ordinary GUEST_HANDLE when getting the HVM context so as 32 bit dom0s on a 64 bit hypervisor do the right thing. Signed-off-by: Steven Smith --- xen/include/public/domctl.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xen/include/public/domctl.h b/xen/include/public/domctl.h index 0fc788d95a..1b5e816aaa 100644 --- a/xen/include/public/domctl.h +++ b/xen/include/public/domctl.h @@ -394,8 +394,10 @@ DEFINE_XEN_GUEST_HANDLE(xen_domctl_settimeoffset_t); #define XEN_DOMCTL_sethvmcontext 34 typedef struct xen_domctl_hvmcontext { uint32_t size; /* IN/OUT: size of buffer / bytes filled */ - XEN_GUEST_HANDLE(uint8_t) buffer; /* IN/OUT: data, or call gethvmcontext - * with NULL buffer to get size req'd */ + XEN_GUEST_HANDLE_64(uint8_t) buffer; /* IN/OUT: data, or call + * gethvmcontext with NULL + * buffer to get size + * req'd */ } xen_domctl_hvmcontext_t; DEFINE_XEN_GUEST_HANDLE(xen_domctl_hvmcontext_t); -- 2.30.2